package util

func Pagiation(page, size int) (int, int) {
	if page <= 0 {
		page = 1
	}

	if size <= 1 {
		size = 5
	} else if size > 200 {
		size = 200
	}

	offset := (page - 1) * size

	return size, offset
}
